/*读数字量*/
#include "../../../../include/driver/gpio.h"
#include "../../../../drivers/chips/ws63/porting/pinctrl/pinctrl_porting.h"
#include "../../../../include/driver/pinctrl.h"

#include "water.h"
#include "main.h"
void water_init(void)
{
    uapi_pin_set_mode(WATER_LEVEL_PIN, 0);    //设置引脚复用模式为GPIO
    uapi_pin_set_pull(WATER_LEVEL_PIN, PIN_PULL_TYPE_UP);     //设置GPIO为上拉模式
    uapi_gpio_set_dir(WATER_LEVEL_PIN, GPIO_DIRECTION_INPUT); //设置GPIO方向为输入方向 
}

void water_read(void)
{
    // sle_tx_buff[WATER] = uapi_gpio_get_val(WATER_LEVEL_PIN);
}